import request from '@/utils/request'
const serviceName = 'Warehouse'
//  列表
export function queryGoodTypes(data) {
  return request({
    url: serviceName + '/GoodType/QueryGoodTypes',
    method: 'post',
    data
  })
}
//  详情
export function getGoodType(data) {
  return request({
    url: serviceName + '/GoodType/GetGoodType',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveGoodType(data) {
  return request({
    url: serviceName + '/GoodType/SaveGoodType',
    method: 'post',
    data
  })
}
//  删除
export function deleteGoodTypes(data) {
  return request({
    url: serviceName + '/GoodType/DeleteGoodTypes',
    method: 'post',
    data
  })
}

export default {
  queryGoodTypes,
  getGoodType,
  saveGoodType,
  deleteGoodTypes
}
